<!-- 
    @author Wójcik Karol <wojcikk@student.agh.edu.pl>
    @licence http://www.gnu.org/copyleft/gpl.html GNU/GPL
-->

<%= error_messages_for 'subject' %>

<!--[form:subject]-->
<p><label for="subject_name">Nazwa</label><br/>
<%= text_field 'subject', 'name'  %></p>

<p><label for="subject_year">Rok</label><br/>
<%= select "subject", "year", @Years,  {:include_blank => true}  %></p>

<p><label for="subject_major_id">Kierunek</label><br/>
<%=  select("subject", "major_id", Major.find(:all).collect {|p| [ p.name, p.id ] }, {:include_blank => true}) %></p>

<p><label for="subject_notes">Notatki</label><br/>
<%= text_area 'subject', 'notes'  %></p>
<!--[eoform:subject]-->

